package com.mofang.powerdekorhelper.adapter;

import android.content.Context;

import com.mofang.powerdekorhelper.R;
import com.mofang.powerdekorhelper.base.recycleview.BaseRecycleViewAdapter;
import com.mofang.powerdekorhelper.base.recycleview.BaseViewHolder;
import com.mofang.powerdekorhelper.model.CustomerActivityDetail;

import java.util.List;

/**
 * Created by luofei on 2017/9/2 0002.
 * 说明：
 */

public class CustomerActivityDetailAdapter extends BaseRecycleViewAdapter {

    public CustomerActivityDetailAdapter(List<?> data, Context mContext, int layoutId) {
        super(data, mContext, layoutId);
    }

    @Override
    protected <T> void convert(BaseViewHolder holder, T bean, int position) {
        CustomerActivityDetail.Item item = (CustomerActivityDetail.Item) bean;
        holder.setText(R.id.activity_detail_code_title, item.getBuy_money() + "");
        holder.setText(R.id.activity_detail_code, item.getCode());
        holder.setText(R.id.activity_detail_gift_tv, item.getGift());
    }
}
